<template>
  <div>
      {{this.$route.query.name}}
  </div>
</template>

<script>
    export default {
        name: "Test",
        mounted(){
          console.log("Test mounted")
        },
        watch:{
          $route:{
            handler({params:{id}}){console.log("Test watch",id)},
            deep:true,
            immediate:true
          }
        }
    }
</script>

<style scoped>

</style>
